package com.sixbro.authorization.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author: Mr.Lu
 * @since: 2021/6/16 8:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户信息")
public class UserInfo {

    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色标识集合")
    private Principal principal;

    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色标识集合")
    private List<Privilege> privileges;

    /**
     * 角色集合
     */
    @ApiModelProperty(value = "角色标识集合")
    private List<Role> roles;
}
